#!/bin/bash
#
# 07/25/2012 - created

JETTY_DIR=/usr/local/jetty


sudo mkdir ${JETTY_DIR}
sudo chown 500:500 ${JETTY_DIR}
cd ${JETTY_DIR}

wget http://archive.eclipse.org/jetty/7.6.1.v20120215/dist/jetty-distribution-7.6.1.v20120215.tar.gz
tar zxvf jetty-distribution-7.6.1.v20120215.tar.gz
rm -f jetty-distribution-7.6.1.v20120215.tar.gz

sudo yum -y install java

cd ${JETTY_DIR}/jetty-distribution-7.6.1.v20120215

nohup java -jar start.jar > start.log 2>&1 &

exit
